package com.mowh.multithreading.active.object.active;

import com.mowh.multithreading.active.object.active.active.object.ActiveObject;
import com.mowh.multithreading.active.object.active.active.object.ActiveObjectFactory;

/**
 * @author mowh1gd
 * @create 2023/11/28 15:57
 */
public class Main {
    public static void main(String[] args) {
        ActiveObject activeObject = ActiveObjectFactory.createActiveObject();//生成代理实例activeObject
        new MakerClientThread("Alice", activeObject).start();//2个Maker线程，1个Display线程
        new MakerClientThread("Bobby", activeObject).start();
        new DisplayClientThread("Chris", activeObject).start();
    }
}
